package com.kabigon.tiny.exception;

/**
 * 业务异常
 * @author xu.biao
 * @version v1.0
 * @Package com.kabigon.tiny.exception
 * @data 2022/10/16 15:45
 */
public class BussinessException extends RuntimeException{

    private Integer code;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public BussinessException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public BussinessException(Integer code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

}
